package com.cqvie.serviceTest;

import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.cqvie.controller.msg.ClassesMsg;
import com.cqvie.controller.msg.FindAttendMsg;
import com.cqvie.controller.msg.FindLeaveMsg;
import com.cqvie.controller.msg.LoginMsg;
import com.cqvie.controller.msg.StudentMsg;
import com.cqvie.controller.msg.UpdateStuMsg;
import com.cqvie.model.AttendDetails;
import com.cqvie.model.Course;
import com.cqvie.model.CourseSchedule;
import com.cqvie.model.LeaveMessage;
import com.cqvie.model.Teacher;
import com.cqvie.model.TeacherMaster;
import com.cqvie.model.TimeTable;
import com.cqvie.service.UserService;
import com.cqvie.tools.ClassScanner;

@ContextConfiguration(locations = { "classpath:spring.xml", "classpath:spring-hibernate.xml" })
@RunWith(SpringJUnit4ClassRunner.class)
public class OutputSevices {
//	@Resource
//	private UserService userService;

	
	//http://blog.csdn.net/tjcyjd/article/details/11111401  -- 遍历map
	@Test
	public void testGetService_MethodAndAnnotation() {
		Map<String, String> map=ClassScanner.getMethods();
		for (Entry<String, String> entry : map.entrySet()) {  
		    System.out.println("Key = " + entry.getKey() + ", Value = " + entry.getValue());  
		} 
	}

	
}
